class_name Coin extends Area2D

func _on_body_entered(body: Node2D):
	if !(body is Player): return
	Main.statics.addPoint(1)
	Main.sfx.play()
	queue_free()
